#!/bin/bash

source ../common/common.sh

echo "===INIT==UBUNTU=CPPIDE==="
sudo echo "SUDO ROOT"

show t "安装gcc开发基本库"
install_apt_pack "force|build-essential autogen libtool automake"

show t "安装cmake开发基本库"
install_apt_pack "force|cmake cmake-data cmake-doc cmake-dbg"
if [ `is_desktop` -eq 1 ]; then  
  install_apt_pack "force|cmake-curses-gui cmake-qt-gui"
fi

show t "安装boost"
#install_apt_pack "force|libboost-dev libboost-all-dev"
#install_apt_pack "force|libboost1.54-dev libboost1.54-all-dev"
#install_apt_pack "force|libboost1.53-dev libboost1.53-all-dev"
id=`get_linux_ver`
if [ "$id" == "14.04" ]; then
  install_apt_pack "update|force|libboost1.55-dev libboost1.55-all-dev"
else
  install_apt_pack "ppa:boost-latest/ppa|update|force|libboost1.55-dev libboost1.55-all-dev"
fi

show t "安装代码格式化工具"
install_apt_pack "force|astyle"

if [ `is_desktop` -eq 1 ]; then  

  show t "安装anjuta"
  install_apt_pack "force|anjuta"

  show t "安装geany"
  install_apt_pack "force|geany"

  show t "安装codeblocks"
  install_apt_pack "force|codeblocks"
  #install_apt_pack "ppa:pasgui/ppa|update|force|codeblocks"

fi

